import { http } from '../common/http.js'
import store from '../store/index.js'
module.exports = {
	// 生成海报二维码目前用的是订票宝的域名这个接口！！！！！！！！！
	get_poster_image(params) {
		return http({
			url: 'verify/verify_code/get_poster_qrcode',
			data: params,
			method: 'post',
			domain: 'https://qianxun.zanboon.com/'
		})
	},
	// 获取地图数据
	getMapData(params) {
		return http({
			url: 'my_world/map/get_map_list',
			data: params,
			method: 'get'
		})
	},
    getVerificationcode(params){
        return http({
            url:'/privileged_activity/privileged_activity/index',
            data:params,
            method:'post'
        })
    },
    
	// 每日解谜题目
	getRiddleQuestion(params) {
		return http({
			url: 'daily_puzzle/api_user_puzzle/getTestQuestion',
			data: params,
			method: 'get'
		})
	},
	// 获取每日解谜答案
	getRiddleAnswer(params) {
		return http({
			url: 'daily_puzzle/api_user_puzzle/answer',
			data: params,
			method: 'post'
		})
	},
	// 添加地址
	addrManage(params) {
		return http({
			url: 'user/address/add_address',
			data: params,
			method: 'post'
		})
	},
	// 地址列表
	getAddrList(params) {
		return http({
			url: 'user/address/all_address',
			data: params,
			method: 'post'
		})
	},
	// 编辑地址
	editAddr(params) {
		return http({
			url: 'user/address/update_address',
			data: params,
			method: 'post'
		})
	},
	// 删除地址
	delAddr(params) {
		return http({
			url: 'user/address/delete_address',
			data: params,
			method: 'post'
		})
	},
	// 根据id修改默认地址
	editAddrDefault(params) {
		return http({
			url: 'user/address/update_defaultAddress',
			data: params,
			method: 'post'
		})
	},
	// 获取每日解谜幸运福卡数据
	getLuckyCardInfo(params) {
		return http({
			url: 'daily_puzzle/api_user_puzzle/getLuckyCardInfo',
			data: params,
			method: 'post'
		})
	},
	// 获取每日解谜幸运福袋数据
	openLuckBag(params) {
		return http({
			url: 'daily_puzzle/api_user_puzzle/getLuckyBag',
			data: params,
			method: 'post'
		})
	},
	// 获取特权活动列表
	getPrivilegedList(params) {
		return http({
			url: 'privileged_activity/api_index/index',
			data: params,
			method: 'post'
		})
	},
	// 获取特权活动详情
	getSpeacilActDeltail(params) {
		return http({
			url: 'privileged_activity/api_index/info',
			data: params,
			method: 'post'
		})
	},
	// 获取我的页面用户信息
	getMyData(params) {
		return http({
			url: 'user/api_index/info',
			data: params,
			method: 'post'
		})
	},
	// 获取我的收益数据
	get_my_income(params) {
		return http({
			url: 'user/api_index/get_my_income',
			data: params,
			method: 'post'
		})
	},
	// 获取我的团队数据
	get_my_team(params) {
		return http({
			url: 'user/api_index/get_my_team',
			data: params,
			method: 'get'
		})
	},
	// 获取参加我的小幸运活动记录
	get_mylucky_record(params) {
		return http({
			url: 'user/api_index/get_my_little_lucky',
			data: params,
			method: 'post'
		})
	},
	// 获取所有开始的小幸运活动
	get_all_start_lucky(params) {
		return http({
			url: 'lucky/lucky/start_lucky',
			data: params,
			method: 'post'
		})
	},
	// 小幸运详情数据
	getLuckDetail(params) {
		return http({
			url: 'lucky/lucky/get_info',
			data: params,
			method: 'post'
		})
	},
	// 用户参与小幸运抽奖
	join_lucky(params) {
		return http({
			url: 'lucky/join_lucky/join_lucky',
			data: params,
			method: 'post'
		})
	},
	// 获取mqtt相关配置信息
	getChatInfo(params) {
		return http({
			url: 'service/chat/getChatInfo',
			data: params,
			method: 'get'
		})
	},
	// 发送消息接口
	sendContent(params) {
		return http({
			url: 'service/customer_service/sendContent',
			data: params,
			method: 'post'
		})
	},
	// 获取聊天记录
	getChatMessageList(params) {
		return http({
			url: 'service/chat/getChatMessage',
			data: params,
			method: 'post'
		})
	},
	// 获取用户要申请订阅的消息
	get_wx_news(params) {
		return http({
			url: 'user/api_index/checkRemind',
			data: params,
			method: 'post'
		})
	},
	// 小程序授权成功告知
	get_wx_news_result(params) {
		return http({
			url: 'user/api_index/addAuthMes',
			data: params,
			method: 'post'
		})
	},
	// 获取精选视频列表
	getVideoList(params) {
		return http({
			url: 'video/video/list_video',
			data: params,
			method: 'post'
		})
	},
	// 点亮省份
	addMap(params) {
		return http({
			url: 'my_world/map/addMap',
			data: params,
			method: 'post'
		})
	},
	// 获取用户点亮省份
	getLightUpProvince(params) {
		return http({
			url: 'my_world/map/getLightUpProvince',
			data: params,
			method: 'post'
		})
	},
	// 自己参加特权活动
	join_privi_act(params) {
		return http({
			url: 'privileged_activity/api_index/hisOwn',
			data: params,
			method: 'post'
		})
	},
	// 获取特权活动分享信息
	get_privi_share_info(params) {
		return http({
			url: 'privileged_activity/api_index/sharePoster',
			data: params,
			method: 'post'
		})
	},
	// 根据特权活动id查看我的订单
	getOrderInfoByActId(params) {
		return http({
			url: 'privileged_activity/api_index/getOrderInfo',
			data: params,
			method: 'post'
		})
	},
	// 根据订单id查看特权活动订单信息
	getOrderInfoByOrderId(params) {
		return http({
			url: 'privileged_activity/api_index/getOrderInfoByOrderId',
			data: params,
			method: 'post'
		})
	},
	// 精选视频添加观看记录
	add_watch_record(params) {
		return http({
			url: 'video/watch/add_watch',
			data: params,
			method: 'post'
		})
	},
	// 精选视频修改观看记录
	update_watch_record(params) {
		return http({
			url: 'video/watch/update_watch',
			data: params,
			method: 'post'
		})
	},
	// 添加用户手机号码
	add_phone(params) {
		return http({
			url: 'user/api_index/auth_user_info',
			data: params,
			method: 'post'
		})
	},
	// 添加视频分享记录
	add_share_video_record(params) {
		return http({
			url: 'video/video_share/add_share',
			data: params,
			method: 'post'
		})
	},
	// 提现申请
	apply_for_withdrawal(params) {
		return http({
			url: 'pay/pay/apply_for_withdrawal',
			data: params,
			method: 'post'
		})
	},
	//#ifdef H5
	// 提交订单
	submitOrder(params) {
		return http({
			url: 'privileged_activity/api_index/submitOrderH5',
			data: params,
			method: 'post'
		})
	},
	//#endif
	//#ifdef MP-WEIXIN
	// 提交订单
	submitOrder(params) {
		return http({
			url: 'privileged_activity/api_index/submitOrder',
			data: params,
			method: 'post'
		})
	},
	//#endif

	// 根据id获取精选视频
	getVideoById(params) {
		return http({
			url: 'video/video/get_info',
			data: params,
			method: 'post'
		})
	},
	// 获取首页基本信息
	getHomeBase(params) {
		return http({
			url: 'user/api_index/index',
			data: params,
			method: 'post'
		})
	},
	// 获取金榜题名奖励
	get_reward(params) {
		return http({
			url: 'wisdom_challenge/api_index/get_reward',
			data: params,
			method: 'get'
		})
	},
	// 获取金榜题名排行榜
	goldLeaderBoard(params) {
		return http({
			url: 'wisdom_challenge/api_index/goldLeaderBoard',
			data: params,
			method: 'post'
		})
	},
	// 获取基本设置信息
	get_set_info(params) {
		return http({
			url: 'system/set/get_info',
			data: params,
			method: 'get'
		})
	},
	// 获取金榜我的奖励
	get_my_reward(params) {
		return http({
			url: 'wisdom_challenge/api_index/my_reward',
			data: params,
			method: 'post'
		})
	},
	// 金榜题名题目
	gettopNominate(params) {
		return http({
			url: 'wisdom_challenge/api_index/index',
			data: params,
			method: 'post'
		})
	},
	// 金榜题名答题
	answer_jin(params) {
		return http({
			url: 'wisdom_challenge/api_index/dati',
			data: params,
			method: 'post'
		})
	},
	// 金榜题名提示答案
	prompt_answer(params) {
		return http({
			url: 'wisdom_challenge/api_index/prompt_answer',
			data: params,
			method: 'post'
		})
	},
	// 金榜题名记录分享
	add_jin_share(params) {
		return http({
			url: 'wisdom_challenge/api_index/addShare',
			data: params,
			method: 'post'
		})
	},
	// 小幸运用户中奖详情
	get_reward_detail(params) {
		return http({
			url: 'lucky/join_lucky/prize_lucky',
			data: params,
			method: 'post'
		})
	},
	// 更新收货小幸运地址
	update_user_address(params) {
		return http({
			url: 'lucky/join_lucky/add_join_address',
			data: params,
			method: 'post'
		})
	},
	// 金榜题名答题完成接口
	completeAnswer(params) {
		return http({
			url: 'wisdom_challenge/api_index/completeAnswer',
			data: params,
			method: 'post'
		})
	},
	// 福袋分享接口
	share_daily(params) {
		return http({
			url: 'daily_puzzle/daily_share/add_share',
			data: params,
			method: 'post'
		})
	},
	// 获取微信步数
	get_run_steps(params) {
		return http({
			url: 'login/login/mini_program_get_steps',
			data: params,
			method: 'post'
		})
	},
	// 获取收益记录
	get_income_record(params) {
		return http({
			url: 'my_world/divide_revenue/get_list',
			data: params,
			method: 'post'
		})
	},
	// 获取我的特权活动记录
	myPriviActLog(params) {
		return http({
			url: 'privileged_activity/api_index/myPrivilegedActivityLog',
			data: params,
			method: 'post'
		})
	},
	// 申请取消订单
	applyForCancellation(params) {
		return http({
			url: 'privileged_activity/api_index/applyForCancellation',
			data: params,
			method: 'post'
		})
	},
	// 获取瓜分收益列表
	getIncomeList(params) {
		return http({
			url: 'my_world/divide_revenue/getIncomeList',
			data: params,
			method: 'get'
		})
	},
	// 获取自动回复消息
	getAutoMsg(params) {
		return http({
			url: 'service/automatic_response/info',
			data: params,
			method: 'get'
		})
	},
	// 精选视频模块开启与否
	check_featured_video(params) {
		return http({
			url: 'system/set/check_featured_video',
			data: params,
			method: 'get'
		})
	},
	// 获取金榜题名分享信息
	get_challenge_info(params){
		return http({
			url: 'wisdom_challenge/share_set/get_info',
			data: params,
			method: 'post'
		})
	},
	// 添加直播
	wx_liveplayer_add(params){
		return http({
			url: 'privileged_activity/wx_liveplayer/add',
			data: params,
			method: 'post'
		})
	},
	
	// 获取直播列表
	wx_liveplayer_list(params){
		return http({
			url:'privileged_activity/wx_liveplayer/getlist',
			data:params,
			method:'post'
		})
	},
	// 获取单条直播信息
	wx_liveplayer_getinfo(params){
		return http({
			url:'privileged_activity/wx_liveplayer/get_info',
			data:params,
			method:'post'
		})
	},
	
	// 同步直播状态接口
	syn_live_status(params){
		return http({
			url:'privileged_activity/wx_liveplayer/syn_live_status',
			data:params,
			method:'post'
		})
	},
	// 审核通过并创建直播
	agree(params){
		return http({
			url:'privileged_activity/wx_liveplayer/agree',
			data:params,
			method:'post'
		})
	}
	
 ,
    //收益来源
	source_of_returns(params){
		return http({
			url:'user/amount_change/record_amount',
			data:params,
			method:'post'
		})
	},
	// 用户分享的参数
	get_share_params(params) {
		return http({
			url: 'user/user/share',
			data: params,
			method: 'post'
		})
	},
    //获取好友设置基本信息
    get_achievement_value(params) {
    	return http({
    		url: 'system/set/info',
    		data: params,
    		method: 'post'
    	})
    },
	
} 
     

